
#include <stdio.h>
#include <time.h>
#include <stdlib.h>
#include "hbird_sdk_soc.h"
#include "spi.h"


int main(void)
{
	int i=0;
	char charArray[] = {'R','i','s','c','-','v'};
	SPI_init();
    printf("Spi test\r\n");
    while(1)
    {
    	CS_L;
    	delay_1ms(1);
    	for(i=0;i<6;i++)
    		SOFT_SPI_RW_MODE0(charArray[i]);
    	CS_H;
    	delay_1ms(100);

    }
    return 0;
}

